<?php

namespace App\Api\Logic\Validate;

class GoodsValidate extends BaseValidate
{
    protected $rule = [
        'size'=>'required',
        'page'=>'required',
        'goods_id'=>'required'
    ];

    protected $message = [
        'size.required'=>'请输入每页显示条数',
        'page.required'=>'请输入查看的页数',
        'goods_id.required'=>'请选择查看的商品'
    ];

    protected $scene = [
        'getGoodsList'=>'size,page',
        'getGoodsInfo'=>'goods_id'
    ];
}
